package cc.cc4414.cc03.chat.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息表
 * </p>
 *
 * @author cc
 * @since 2019-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chat_message")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 消息类型：0为系统消息，1为文本消息，2为图片消息，3为语音消息，4为视频消息，5为文件消息，6为视频通话
     */
    private Integer type;

    /**
     * 消息内容
     */
    private String content;


    public static final String ID = "id";

    public static final String TYPE = "type";

    public static final String CONTENT = "content";

}
